Use process.stdout instead of /dev/stdout.