Handle multi-layer symlink trails
Merge pull request #658 from bossmc/fix-require-path-resolution

Handle multi-layer symlink trails