npm build script can be used on linux/unix environment

utils/npm/build.js works now on linux.

* The scripts detects OS and changes the build command
* Now build.sh builds also a minified version of the three-math file