do manual PATH search on osx (to workaround yosemite PATH stripping)