Fix critical windows bug in the Dust plugin

The plugin doesn't work on Windows because of Windows' backslashes.

I submitted a few unit tests and a fix. If you don't want the unit tests, you can cherry-pick the first and last commit.

More explanations in the commit messages.