Conform to unix standards on version check

* On error, process.exit with an error number
* Print errors onto stderr
* Only print products and version numbers onto stderr