[tcling] Determine if a file is a shared library in a more reliable way.
[tcling] Determine if a file is a shared library in a more reliable way.

Improve code readability by early continue-s.

root-mirror/root,olifre/root,root-mirror/root,karies/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,karies/root,root-mirror/root,karies/root,root-mirror/root,karies/root,root-mirror/root,karies/root,olifre/root,karies/root,olifre/root,karies/root,olifre/root,karies/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,root-mirror/root,karies/root,karies/root,olifre/root,olifre/root