build script: added --auto-retry (default: 1) and --wait-auto-retry (default: 5) to error handler