mod/reader use course_delete_module instead of delete_course_module in Moodle >= 2.5