Changing conditional for node.js 0.8.0 - 0.10.x