Improve the `ls --color` detection on OS X

GNU command line tools installed by `homebrew` (probably the most popular package manager on OS X) are prefixed by `g`, thus we should detect `gls` instead of `ls` for `--color` switch.