Fix bug for windows where paths use backslashes (\) instead of forwardslashes (/).
This would probably be better if no slashed were included in the code