Avoid re-implementing python stdlib (use shutil)