Path separator bug in CompileFolder on Windows

Hi,

The string replace logic in `CompileFolder` wasn't working so well when I was passing `/` as a separator on Windows  systems (half the strings would used `\` and half `/`) so this will normalise the separators.