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