sets temporary direcory properly and only uses a single core.