Set the `cwd` parameter of `options` object of `spawn` to full path to the `reg.exe` for normal work within node-webkit.