Added an array of possible common locations for the hosts file on Mac OS X and Windows, also added in a simple foreach loop to select one to use.  Will likely need sudo on Mac OS X and needs to be run in a console with elevated privileges on Windows.