Fixed RDoc rake task to support both 1.8 and later versions of Ruby.