Relocate my_copytree to prevent import error