fixed some issues with deploy.rb