ensure not chdir to . even if os.curdir ('.') was passed to myrepo.shell.adjust_cmd