fixed resource loading for jar