Restoring IMS-CC files, imsmanifest.xml is not looked within root folder

Details

1) Restore the attached course (backup-MDL-33080.mbz) into new course.
2) Go to the restored course and backup it, ticking the "IMS Common Cartridge 1.1" checkbox.
3) TEST: The process ends and one ".imscc" file is available.
4) Restore that IMSCC package to new course.
5) TEST: The format is properly detected and conversion happen.
6) Continue with the restore process, ignoring any warning.
5) TEST: The process ends without any fatal error. Warnings and borked results at the end can be ignored to tests this. Other issues have been created for them.

Note: It's enough to test this under master only. For 22_STABLE the feature was hidden (via CFG setting) and no many changes are expected there.

1) Restore the attached course (backup- MDL-33080 .mbz) into new course.
2) Go to the restored course and backup it, ticking the "IMS Common Cartridge 1.1" checkbox.
3) TEST: The process ends and one ".imscc" file is available.
4) Restore that IMSCC package to new course.
5) TEST: The format is properly detected and conversion happen.
6) Continue with the restore process, ignoring any warning.
5) TEST: The process ends without any fatal error. Warnings and borked results at the end can be ignored to tests this. Other issues have been created for them.
Note: It's enough to test this under master only. For 22_STABLE the feature was hidden (via CFG setting) and no many changes are expected there.

Description

1) Create one course with a few activities (one scorm and one ims-cp resources included).
2) Backup (export) it to IMS-CC format.
3) Restore (import) it, to get the course back and compare.

And 3 fails because cc112moodle::get_manifest() returns the scorm or ims-cp imsmanifest.xml files before looking for the root/imsmanifest.xml one (because of how DirectoryIterator returns the information).

So I've created one small patch to enforce looking to the root directory before searching recursively. For your consideration.