* build: rework header generation in Node.js * build: fix patch location error * fix: set --root-dir correctly