[gh-809] Don't hardcode, look in .git file for gitdir