fix resource path when writing to zip