mllib: hostname: on Debian replace it also in /etc/hosts (RHBZ#953907).

In Debian/Ubuntu systems, read the previous hostname from /etc/hostname
before replacing it, and replace it in /etc/hosts with the new hostname.