MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in...