Revise bin/shoes anywhere for OS X

Here's a version that seems to work on OS X. Does it work also on Linux?