support BUILD_DIR/release.sh