second fix for copying resources from a jar at init