Fix for situations where atom is opened with a file rather than a directory
Make it work when a file is opened without a project
Merge pull request #3 from brandonhorst/master

Fixes for non-directory projects