Fixes https://github.com/hyperoslo/capistrano-foreman/issues/22

Originally fixed in https://github.com/jmcomets/capistrano-foreman, but
that repo is outdated