Get your taxes done using TurboTax

Being incarcerated is not considered a temporary absence from the home.

Additionally you would have needed to provide over one-half of his support for the year.  You did not do that since the state/county/city department of corrections provided his support for 7 months.