Adapting deploy.sh script