1. Repair bug: create dir when dest of copy_history does not exist.