Ensure correct tmp dir structure