Replace recursive process.nextTick usage with setImmediate as per http://blog.nodejs.org/2013/03/11/node-v0-10-0-stable/