unix: Use standard return codes for main

As in the CPython manual: "Unix programs generally use 2 for
command line syntax errors and 1 for all other kind of errors"
Merge pull request #600 from stinos/unix-exitcode

unix: Use standard return codes for main