Fix /etc/hosts generation