Fix bin/shell scripts and various things to make it work cleanly (switch wrapper commands, improve support for custom services and for simple sessions with no input).