updating build-script with environment type