setImmediate instead of nextTick for node >=0.10