dist/licenses: add and use diff-filter
FIXUP: fix wrong script invocation
dist/licenses: add and use --error-exitcode