Several fixes for "azure site deploymentscript"