conditionalise /etc/hosts update