Don't accept generated temp directory names that can't be created successfully.
Merge pull request #592 from woggling/localdir-fix

Don't accept generated local directory names that can't be created