refactored out dependencies
Emacs cruft in .gitignore [ci skip]
OSError catching in the test as well