Make require of debug gem conditional on ruby version