Improved deploy.rb