Add only slashes in tar paths

Use os.IsPathSeparator when checking for path separators.
Fix tests for Windows