Fix regex to just replace the bad ip with 127.0.0.1 and keep the hostnames

This fixes an issue where we were building hosts that had broken fqdn's. It
wasn't checked in older version so vagrant but the new 1.3.x series opened this
problem up.