archive: use util.opener when archiving files.
This simplifies the code a bit and makes it easier to support symlinks.
*** failed to import extension badext: bit bucket overflowextension 'hgext.gpg' overrides commands: sigs sigcheck signhg help [COMMAND]show help for a command, extension, or list of commands