verify that target path for clone repository is a git repository instead...

... of assuming that the directory existing means it is already cloned.

Do a git status check on the path and upon failure, delete the target path and then clone.