Fix for OS X, which does not support -printf in find

OS X does not have `-printf` for the `find` command, so instead pipe through `xargs` and `basename` before sorting with `sort`.
In `bash` it works:

```
$ which ls
/bin/ls
$ alias | grep ls=
alias ls='command ls -hBG'
```