More fixing detection of the git revision if you're running these scripts from outside the repo directory