Use portable depth-first traversal in COPYTREE macros