jsh/module-dir-stack: Ensure module-dir-stack runs within same shell

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>