using tempfile to deal with archive in response

data transfer failed when working server(cygwin) =>client(linux).
header was fixed to point .tar.gz is sent, also switch fh to binmode
also unlink temporary file with archive after items have been extracted