create the temporary index directory