fix ktest to use JCommander

The last of the refactorings to remove Apache Commons CLI.

@osa1 please review.
If I'm not missing anything, debug argument is missing in new version. That was being useful for getting stack traces. Why is it removed? Or is it moved to some other place?