Fixes #4948 the logic does not always work on all windows, we must use windows path separators