Fix rake detection

@xaviershay @sconover 

We want to be sure to use the version of rake that is provided by the app's Gemfile instead of one that happens to be lying around. The approach here is similar to a `bundle exec`.