Merged build scripts into a single shell script
Fixed error in build script