Bug fixes in deploy-script.js