Improve file matching
Match files with known prefixes and full names.
Also cache known files instead of looking up and creating a QDir and QFileInfo for every file, to improve performance massively.
REVIEW: 128396