attempt to get git-dir from 'git rev-parse' as fallback