Improved deploy.sh script.