(#9546) Factor out the tar command to de-dup solaris vs gnu tar impls