Fix error using old list of files for non-.txt files.