Add the suffix if it's not there, not if it is
Have the tempfile use a suffix with a dot
Merge pull request #605 from wiredfool/dump

Dump