fix ktest to use JCommander

The last of the refactorings to remove Apache Commons CLI.

@osa1 please review.