Wraps check for global.process to account for use in browser (not browserify)