Rework so that stdout and stderr can be read
Merge branch 'master' of github.com:pynag/pynag
Make shell selectable and fix exit code