Fix scopePath on Windows

On windows the provided path slashes are "\" instead of "/"