Slightly more idiomatic implementation

No functional change, just implementing in a more typical style for a
capistrano task.