Fixes #124 for Node versions < 0.10