Ensure we find the parent .git directory for async ops.