Fix for Sentry instances installed under paths other than root directory

Fix for Sentry instances installed under paths other than root directory, e.g. /sentry/api/store