Fix /etc/hosts file

We were already updating /etc/hosts with the hostname and FQDN, so I split localhost from the machine's FQDN following the Debian/Ubuntu standard: https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution