Fix directory flag issue

The previous version did not display colors on the modes part in the directory lines.