simplify method hasDotGitSubfolder