Fix deploy.rb to be multiplatform.