Replacing resources files with zip, logic to extract