Remove logic fiddling with temporary directory location --- the problem can be solved with proper configuration