enhance error reporting in deploy.cmd