fixed ls bug with --group-directories-first in util module