truncate resource path cross platformly

We were sending paths relative to the app bundle for Mac and absolute paths for everything else.
This also looks like it is expecting a trailing `/` after the resource path, I think this will be a `\` instead on Windows.

Or are the slashes normalized somewhere else?