fix rake task for ruby 1.8