Replace hardcoded "/tmp" by RDTempFile()