13 set build number with git commit detail fails when git not present or repo not initiated

A bunch of fixes to ensure that git.exe can be found, the expected git repo is initiated and has an initial commit.