In cronRefreshGrades.sh, removed hardwired MySQL tmp dir path. Replaced it with a call into MySQL to get the tmpdir system var.