CB-5816 add build --release
CB-5816 clean build.js and provide feedback if content is missing