pnd_run.sh: move pre/post-run scripts where env is set up