list directories properly