tmpnam and tmpfile fixes; fixes #2797 and #2798
text update