Added tmp directory structure creation