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`.
I don't think so, since they were always in the same folder, the sorting always came down to the file name.