fix bug: cmd-exists return value format.