truncate resource path cross platformly

We were sending paths relative to the app bundle for Mac and absolute paths for everything else.
I don't think the slashes are normalized elsewhere, i'll make that match both slashes.