Handle multi-layer symlink trails

Handle the case where the executables in the path are a symlink to a symlink to the real thing.  I can't think of a good reason why this would be the case (rvm + local bundle + bundler-executable?), but the code as currently given would loop forever.