Copy tree if a file of the same name exists
Craft currently fails to merge a folder if a target file of the same name already exists. The solution is to still copy it over but to a folder name with a customary '.d' suffix to differentiate it from existing file.