Updated build script. Fixed bug.