Cross Platform Comptability

I have made this plugin cross platform compatible when I ran into trouble with it on my dev server (windows based).

I have updated your code and replaced the '/' in your explode with DS so it uses the platform specific directory separator.

I hope you find this worth to merge into the plugin.