Fix wrong hostname added to /etc/hosts