Make sure process.version exists before accessing it

`process.version` is not defined when running client-side using browserify leading to the error `Uncaught TypeError: Cannot call method 'indexOf' of undefined`