sdwdate: fix, clean up temporary directory on exit