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

... Addresses Issue #2383.