title: bundler: not executable: rake
body: <p>I'm in the process of setting up JRuby 1.7 in a ubuntu vagrant box to work with torquebox. I'm using the <a href="https://github.com/jkutner/torquebox-remote-deployer" rel="nofollow">torquebox-remote-deployer</a> gem to deploy the archive file and the app stuff to the virtual machine. Now, when the gem tries to execute <code>bundle exec rake db:migrate</code>, I get the following error:</p>
  
  <pre><code>bundler: not executable: rake
  </code></pre>
  
  <p>Now, when i check in the vendor/bundle/jruby/1.9/bin directory, rake and all the other needed executables are there. I've also tried running the bundle command through the local jruby install to ensure it is called properly, but I get the same result</p>
  
  <pre><code>/opt/jruby/bin/jruby -S bundle exec rake db:migrate
  </code></pre>
  
  <p>Any suggestions? If you need more info, just ask.</p>