Improved deploy.sh script