Ensure longer temp file prefixes.
Create parent directory before making temp files.