For Issue 266: too many temp dirs