Use Rails.root in the Rakefile

It seems more robust (or certainly easier to understand on reading
the code) to make these paths relative to the Rails root rather
than File.dirname(__FILE__).