Added a bit of logic for dircolors and mac compatability