refactored legacy dir_colors support