MDL-43127 tool_uploadcourse: Add support for more enrolment methods