Fix typos and ignore *~ files
Use a hosts file instead of creating one on the fly