variant name determined from datadir; fixes #25
safer handling of TEMPDIR
build system for constructing key files; fixes #16
update testdata