fix ktest to use JCommander

The last of the refactorings to remove Apache Commons CLI.

@osa1 please review.
I just tried it and apparently `--directory` is still working. How does that work?