Provision script: Set directory permissions for gallery and cache.