2.5.x and 2.4.x compatibility

This should allow tadc-moodle to run in any moodle version from 2.4.11 to 2.7.x (2.8 is still not working for now).