Check the file names upon synchronization if there are multiple results (see #5644)