Revert "Use rsync in place of cp to avoid copying .git and .hg folders."

This reverts commit 07beefde0b51ca86fc5b23225f384e23c1dce2d9.