Fix up for Rails 4.0.0 and Capistrano 3.0.0

This is probably not ideal, and I skimped out on some features that used to work, but it works at least.