test: Fix check_shared_lib to work with new list changes

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>