fix for Moodle subdirs