make git-pull-request compatibly across ruby versions