correctly determine web app msdeploy exit code