Fixing so localhost hosts file entry is not lost when updating hostname.