switch to use of $CFG->tempdir