Deal with a case where multiple symlinks point a same file or directory