Some debug messages for bash_dispatch, and export the scripts PID.

Revert the muon5 scripts