Fix long stack formatting for node v0.10
Add node v0.10 detection helper
require: split up v0.10 and v0.12 require() hooks