not always "." before "~" in temp file

(because files don't always have an extension)