Modified Build Script for Generic Environment.