fixed loading of resources from jar file