Fixes bug with .git repo check.