Added some logging and an additional mechanism to try to find the jar file URL.