Sanitize /dev/stdin by using the cat | trick

Gory details:  https://groups.google.com/forum/#!msg/nodejs/SxNKLclbM5k/IrgMQ3UDIQAJ