Fix permission errors when setting up sentry