Support older versions of `git`
- Older versions of git did not understand the
git rev-parse --git-common-dirused to resolve the git dir, so a fallback was introduced. - The
--ignore-lockmodification was fixed, so there should be no issues for newcomers to an existing project anymore.
Thanks to @devnix for pointing out these issues!