Add only slashes in tar paths

Use os.IsPathSeparator when checking for path separators.
Fix tests for Windows
Merge remote-tracking branch 'origin/pr/2'

[#77130324]