Use setImmediate when available instead of process.nextTick

process.nextTick preempts IO, so in almost all cases setImmediate is preferred.