add tar dependency, create scratch dirs automatically