fix conditional for adding line to /etc/hosts