Fix path

ok, my first pull request ever :) 

this fix fixes the problems I had when using this plugin on nginx and using sub-folders. hope it works for you too and that you can merge it in.