Check if directory is in a git repo.
Future<bool> dirIsInGitRepo(String cwd) async { return findGitRoot(cwd) != null; }