Fixed nodejs environment errors caused by browserify

This patch is to fix errors caused by browserify in nodesj environment:

* the process shim breaks environment detection
* fs module override by empty definition