updated Rakefile for newer versions of rake/rubygems