Set reported path to ZIP only when ZIP succeeds.
Set proper file attributes in ZIP archives.