add --query to peek into the list of outputs

also
- rename 'ktor' to 'ktr'
- add KFile map for faster look-ups
- add (another) file name normalization function
- more work on the wildcard expansion