have --check report result using exit code

If any unexpected jarfiles are found, it will exit
with a nonzero exit code.  This allows it to be
used from a script (e.g., the release script)
to check that no unexpected jarfiles exist.