Folder validity also checks whether it is a git repo