overwrite mode repairs

also make keys.rkt test suite be less likely to corrupt the
preferences file (when run in standalone mode)