Modifies update_file

When using Vagrant providers such as OpenStack, upon machine deletion,
the id is empty rather than nil. Additionally, the IP address of the
machine is no longer known once it is destroyed, so in order for the
entry to be correctly removed from /etc/hosts, the regex needs modified.