(#9546) Apply the permissions fix to Windows as well.
(#9546) Factor out the tar command to de-dup solaris vs gnu tar impls