Proper checking for callcc support

It was only covering Java, so I refactored some stuff into methods and cover Rubinius as well.