Better support for browserify

Just check if `process` is defined (or mocked by browserify) instead of
checking if it's a real full object from Node.js