Add ensime to gitignore
Add emacs temp files to gitignore
Make file paths work as in core NetLogo and close open files safely. Fixes #123