Fixes for repo cloning script