Fix install for Moodle version < 2.5