timesync: fix, clean up temporary files/directory