replace process.stdin.resume() with .read() to work with node v0.10 streams