Fix API path prefixing

Fix #255
Merge pull request #259 from getsentry/fix-path-modification

Fix API path prefixing