Create tmp file to create directory