MDL-28701 Fixed broken $CFG->tempdir default and added $CFG->cachedir