Updates hostname in config