Improve core.cache-missing detection.

In some cases, (AOT-related?) attempting to require 'clojure.core.cache
does not result in a FileNotFoundException, but an
ExceptionInInitializerError instead. See
https://github.com/technomancy/leiningen/issues/1739.