Exit with escript exit codes.
Corrected for consistancy.
Merge pull request #67 from glickbot/master

Exit with escript exit codes instead of always exiting with 0.