truncate resource path cross platformly

We were sending paths relative to the app bundle for Mac and absolute paths for everything else.
I think the `resourcePath` should be pulled `atom.getLoadSettings()`, `atom.config.resourcePath` isn't a public API