fix requirepath for moodlequery class