listFiles: de-duplicate file entries, preserve first occourences