Modified JarResourceToDisk. Allowed for resource name and file path separation