Fix stochastic copy of the repo to the wd

This problem would cause the script to run git clone on the directory
where the script was initially executed.