change command check from -z to -x

-x can check existence and executable
and remove unnecessary comment