fixed build script for minified version