Update deployment script to fix permission issues.