Script to set permissions to cache and logs on MacOS environments