fixed shell doRunCommand