make separate scratch dir only when requested