Fix the gem for older versions of ruby