Modify the build script for packaging.