Fixes to curl | tar pipe