Make the temporary directory settable from the command line and from the config file.
Update sage cloud script to use random temporary directories.