Simplified some of the host stuff, hopefully this will fix the infinite /etc/hosts bug