Add cwd for git commands

If you run this utility in any directory other than the directory containing the target git repository you cannot get the data from the target git repository.  By adding a cwd option, the user can now specify which directory to target when gathering tag/commit information.

I also changed the 'latestTag' functionality to work with msysgit.