Don't presume the tmp directory exists.