Fixing the current check and a git command

when not running the commands in the same dir as the git repo, need to specify the location.
Missed unescaped quotes
Merge pull request #1 from bigethan/master

A little fix