allow testing git repo outside of project root

I want to use this module to help report version of my software running in M$'s Azure.  Azure is a pretty nice environment, but the `wwwroot` (where the code was deployed and runs as the `CWD`), is actually a sibling directory to the git repo root, `repository`.  This patch allows specifying an alternate git root directory to hep with cases like that.