Backward compatibility fix with node-0.4 and npm 1.0.x