Fix hostname setting also in Debian, part N

Port #2384 / #2383 for Debian guests.
Merge pull request #2444 from tmatilai/debian_hostname_fix

guests/debian: Fix hostname setting also in Debian, part N