Fix command not found, if user have a bad input.

Signed-off-by: Yunchao Chen <ytu_cyc@126.com>