Fix for windows clients to read passphrase from stdin.

To allow windows users to provide the passphrase via stdin, the process IO has to change:

- stdin: process.stdin (that is, the one from the shell)
- stdout: pipe to node.js (same as before)
- stderr: pipe to node.js (same as before)