Corrected removing the temp version of the hosts file, which is already moved by the preceeding line.