Update /etc/hosts when changing the hostname

Change-Id: Ic4266e3a175d3011dc5cb3fe5812d420ea3b85d9