fix bug in moodle 2 file paths