Added secure alternative to ldd command.