New algorithm for locating libsb2.so for tools during initialization
New algorithm for locating libsb2.so for tools during initialization

- Changed the way how LD_LIBRARY_PATH replacement is built for tools (and
  the target, if host CPU type == target CPU)

- the intention is that the libsb2.so.1 library which is used by tools
  can be used from a "neutral" directory so that it would be possible to
  upgrade/downgrade any component (tools,target_roots or sb2 itself)
  without having to re-configure other components in the system.

- this should be upward compatible with the old practises; new locations
  are checked first, but if the library is not found there, the old
  locations are checked next

neeraj9/sbox2,loganchien/scratchbox2,lbt/scratchbox2,h113331pp/scratchbox2,loganchien/scratchbox2,BinChengfei/scratchbox2,madscientist42/scratchbox2,madscientist42/scratchbox2,loganchien/scratchbox2,madscientist42/scratchbox2,neeraj9/sbox2,OlegGirko/ldbox,freedesktop-unofficial-mirror/sbox2,BinChengfei/scratchbox2,h113331pp/scratchbox2,loganchien/scratchbox2,lbt/scratchbox2,freedesktop-unofficial-mirror/sbox2,BinChengfei/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,OlegGirko/ldbox,neeraj9/sbox2,h113331pp/scratchbox2,freedesktop-unofficial-mirror/sbox2,BinChengfei/scratchbox2,BinChengfei/scratchbox2,freedesktop-unofficial-mirror/sbox2,neeraj9/sbox2,madscientist42/scratchbox2,lbt/scratchbox2,neeraj9/sbox2,OlegGirko/ldbox,ldbox/ldbox,h113331pp/scratchbox2,OlegGirko/ldbox,h113331pp/scratchbox2,freedesktop-unofficial-mirror/sbox2,OlegGirko/ldbox,ldbox/ldbox,neeraj9/sbox2,ldbox/ldbox,freedesktop-unofficial-mirror/sbox2,loganchien/scratchbox2,madscientist42/scratchbox2,BinChengfei/scratchbox2,ldbox/ldbox,lbt/scratchbox2,ldbox/ldbox,loganchien/scratchbox2,madscientist42/scratchbox2,lbt/scratchbox2,h113331pp/scratchbox2