Added backup of hosts file and changed platform.system() to work on OSX