Safer /etc/hosts updates