pkey-sexp: clean up the sexp writer

(picked from 'wip/pkey-sexp-cleanup')
tarball: archive files from USB sticks into ~