Fix ruby Pry helper for Pry version >= 0.10.0.

This should fix issue #336 but will break older versions of Pry.