Prevent additional suffixes on filenames...

... which may throw off MIMEtype detection. Seems to be dependent on
OS, so Ubuntu didn't have the issue which CentOS did. Fun times!
Merge pull request #57 from adam-vessey/7.x-fix-tempnam-issue

Prevent additional suffixes on filenames...