Fix permissions for web scripts