Resolve symbolic links when searching for git dir