Generalize deb build script to use package.json.