Fix hostname change when having Samba installed.