Fix string escaping in REPL shell mode cd test