Fix #9103, implementing `cd -` in REPL shell mode