Fixes for non-directory projects

Fixes the plugin for situations where Atom was opened to a file (`atom file.txt`), or without a project at all (`atom`)