Fix issue with Windows style path separators
Make sure we replace backslashes earlier
Merge pull request #313 from arv/fix-windows-build

Fix issue with Windows style path separators