create tmp directory structure if it does not exist