fix suffix of tempfile