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

Why not make this test explicit? like: `@test pwd() == unescape_string(tmpdir)`