logFileNamesGetLastMatching function

Get lexically last file names from a list of log directories, checking that the file names are the same in all directories.