fix bugs https://github.com/go-xorm/cmd/issues/3

Signed-off-by: 商讯在线 <swhbox@foxmail.com>