tool/createusers add compatability with Moodle 2.2