Broken Windows compability

![meme](https://f.cloud.github.com/assets/1484824/266733/f9002c3a-8e32-11e2-969b-7df64531701f.jpg)

So @brunombsilva just made me notice that this commit - c795054 - pretty much broke the plugin entirely under Windows.

I'll submit a fix a fix attempt in the next couple of minutes :)