fixed the parsing of /etc/hosts