Add missing 'sys.' and remove unused module import.
Exit with exit code 1 if there were errors, 0 otherwise.
Merge pull request #17 from catseye/exit-code-1-on-error

Exit with exit code 1 when errors occurred