fix binary parser for krun

Fix for #369.

@osa1 please review the ktest changes. @radumereuta please review the fix itself.