dist/licenses: add and use --error-exitcode