b21778dec1
Replace the `pwd -P` approach with an explicit positional argument (`$1`) for zsh and bash login shell invocations. Login shells source profile scripts (`/etc/profile`, `~/.profile`, `~/.bashrc`) before the `-c` script executes, and those scripts may change the working directory (e.g. nvm, direnv), making both `$PWD` and `pwd -P` unreliable at script evaluation time. By passing `ctx.directory` as `$1` and falling back to `$PWD` when unset, the shell script always receives the correct session directory regardless of profile side effects. Simplify the corresponding integration test by removing verbose CI debug probes and replacing them with a straightforward `pwd` assertion.