Only remove the tld when sedding.

Our hosts file has aliases for each host without the internal tld. So there is
no need to replace the internal tld we can just remove it.

Also make production the same as the other environments.