Fix fqdn/hostname setting on Debian and other that "precise64" Ubuntus

Incorporate fix of #2334 also to Debian guests. And use the old name in regexp instead of hard coded "precise64".