Fixed bugs in build script
Fixed errors in build script