Fixes rake tasks

This commit changes the loading order so that rake does not exit
before loading the rubygems and rspec/core/rake_task modules.