Why does something work in my SSH session, but not in Capistrano?