fixes #4828 - pin rake for Ruby 1.8 compatibility

(cherry picked from commit d59d272874a0571fd768b2ff66bf3af1eef57488)