moved a part determine whether to modify cmd string, from myrepo.shell.run_async to myrepo.shell.adjust_cmd