JAR-aware version of ressource loading