Much more efficient filename matching.