test: Wrong file was ldd-ed for libs

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>