Avoid issues with nil components in generating local /etc/hosts.
Make sure we never inadvertently display a Windows error message when failing to write to /etc/hosts in Linux.