Remove errors when attempting to delete non-empty directories when child directories do not get removed since the mtime was updated when files were removed from the child directory.
Added new function "cron_delete_from_temp" to delete old files and directories under $CFG->tempdir during cron run. Unit test included.