rewrote postinstall script, npm installs except on staging machine