Fix get the user directory within a course in session - refs #7427