fix ktest to use JCommander

The last of the refactorings to remove Apache Commons CLI.

@osa1 please review.
debug is part of GlobalOptions now.