MDL-46416 tool_uploadcourse: Add support for more enrolment methods