Added java version and architecture detection

Fixes #29
If we keep this, drop the `require('os')` above.