The hostsfile_entry calls were modifying the hosts file on every run - added checks to stop this from happening