install.sh rewritten as a node.js script: postinstall.js