FS::tempnam() refactored.