ktest: print tested output file in case of a match failure (fixes #689)