CHOP-14. Verify that jars added to the DCache are jars.

Also cleaned up jar finding code.

@jhlch @lockoff.