Revert "removed the dependency of the cloning script on the wmcore code"

This reverts commit 5d10f800da4c1ff3fed695cb8fcbf0a23b6c4601.