Use `setImmediate` if available
Use `setImmediate` if available

Node.js 0.12 deprecate `process.nextTick`, so we use setImmediate when
available, fallback to process.nextTick otherwise.

yeoman/generator,andrewstuart/generator,rutaihwa/generator,yeoman/generator,JulienCabanes/generator,yeoman/environment