Adapted Rakefile properly to fit any gem version