Do not break if a dir is not a git repo, just return false