Only install rake if needed
Merge pull request #383 from pmuir/only_install_rake_if_needed

Only install rake if needed