Fixed logic errors in install_hosts. && did not seem to work.