Optimizing of build script