Throw an error if we try to use git but it isn't installed (#362)

Use the [which](https://npmjs.org/package/which) module to check that git is on the path so we can error out sensibly.