Fix node.js 0.8 compatibility with memory session