Fix temp-create to try different names each time

The bugfix in commit d299122 had a bug itself: if a temp name conflicted with an already-existing filename, it would have tried the same temp name over and over.
Merge pull request #69 from rmunn/patch-1

Fix temp-create to try different names each time