Further corrections to deploy.rb