MDL-28579 SCORM: use correct file handling in scorm_update_instance