Fixing piping logic to copy files only after unzipping is complete rather than when the response ends