Added function to check for folder, rather than require, to git clone