I'd suggest you to write a deployment system that deploys your files one by one. Write a checksum and check to see if the expanded files and the checksum of the compressed files and then use the values in deployment to check if it deployed successfully.
I did this myself. You need to pass the checksums and and if it is correct in the current step then you move to the next step.