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`.
@tfoote Using any hard coded "full path" is not a good idea - it will fail on some weird platform. We had numerous of iterations on these parts in catkin.