additional fixes to doc-deploy.sh script