Issue #19: improved multi-level symlinks handling and avoid cyclicity problems by tracking if resolved symlinks are distinct