Fix copying of subfolders.