Fixes permissions on tarfiles to be downloaded