Updated to check for the git folder before cloning