Fix handling of /etc/hosts