Correctly check for remotes when not in git repo.
Merge pull request #8 from github-flow/fix-remote

fix-remote: Correctly check for remotes when not in git repo.