One-liner if expression for argv testing
Add OSX-specific error codes