Create unique temp dirs for each chain.