fixing shell error in build.sh