Fix updating of hosts file on host override updates by bringing back the same behavior from previous releases.