Fix rake bug in ruby 1.8