Fix #9103, implementing `cd -` in REPL shell mode
repl_cmd() prints to the repl's output stream

(not STDOUT)
tests for repl shell mode cd feature
fix long string warning in repl shell mode tests
Merge pull request #9192 from garrison/repl_oldpwd

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