support -o option: redirect ktap output into file

Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@gmail.com>