code for finding bundler on osx

This should work on all platforms but has been tested and
developed on OSX Mavericks. I expect this code to evolve
as it is being tested on other platforms.