Extracted build script
Fixed build script