Fix for change in new captureStackTrace behaviour

For the newer v8 versions in node 0.11.x

Also is backwards compatible. There is a failing test, but that was also failing in the same fashion before this patch.