cmds: use core.xopen() when creating archives

Signed-off-by: David Aguilar <davvid@gmail.com>