GitHub User: hecticjeff
Worth noting that you can use bundle install --binstubs --shebang ruby-local-exec instead of replacing with sed.
bundle install --binstubs --shebang ruby-local-exec
I can't find documentation for the --shebang flag anywhere, but it has the desired effect.
Excellent episode, looking forward to chef/capistrano in the future!
Edit: The --shebang option is defined here in the source.