Improve IsGitRepository check by using git.exe to do it
Fixes #520
Found another instance of git repository existence check, refactored them together.
Changed test to use async / await .NET 4.5 convetion.