Handles relative PATH components
Ignores some useless ldd output lines