Patch I

Rewrite for relative resource paths, that'll be an issue when deploying as a plugin :/