revised build adding an alternative build.sh which can be run aswell as build.js