Fix that allows running the plugin on Windows

I've made a small change to the Template class so that it uses the right file separator character instead of always using '/'. This was causing the plugin to fail on Windows.