fix mkdir for temp