submodule, path: extract slash conversion Extract the backslash-to-slash conversion into a helper function.