Fix exit status
Merge pull request #59 from nordsieck/exit

Fix exit status
Basic step implemented
Allow environment to be passed on CmdRun