Fix issue with deployments

By chowning the entire directory it blocks future deployments.
This should allow the diagnostics.zip to be created and not block
deployments.