Change browser/nodeJS detection to work with Node-Webkit
Change browser/nodeJS detection to work with Node-Webkit

Instead of detecting if `window` exists, check if `module.exports` exists.
mahdaen/swig,notthetup/swig,gitoneman/swig,mahdaen/swig,mrazvan92/swig-async,benpptung/swig,zongkelong/swig,gogobook/swig,zongkelong/swig,cgvarela/swig,Lochlan/swig,paularmstrong/swig,gogobook/swig,genify/swig,jrvldam/swig,DragWeb/swig,cwhatley/swig,zongkelong/swig,Thunf/swiger,cwhatley/swig,notthetup/swig,benpptung/swig,jerrylin1002/swig,Lochlan/swig,cwhatley/swig,Lochlan/swig,Thunf/swiger,xiaoyang2022/swig,CuteSephiroth/swig,jerrylin1002/swig,gitoneman/swig,jerrylin1002/swig,paularmstrong/swig,zetlen/swig,CuteSephiroth/swig,mrazvan92/swig-template-callback,notthetup/swig,DragWeb/swig,CuteSephiroth/swig,jrvldam/swig,mrazvan92/swig-async,jrvldam/swig,DragWeb/swig,gold3bear/swig,benpptung/swig,Thunf/swiger,gitoneman/swig,mahdaen/swig,cgvarela/swig,zetlen/swig,cgvarela/swig,gogobook/swig,paularmstrong/swig,genify/swig,mrazvan92/swig-template-callback,mrazvan92/swig-template-callback,xiaoyang2022/swig,zetlen/swig,xiaoyang2022/swig,mrazvan92/swig-async,genify/swig,gold3bear/swig,gold3bear/swig