MDL-35380 SCORM: improve check for imsmanifest file and consolidate into a single function.