Using shutil for copying trees for cross compatibility