testcase: also check non executable lib for missing rpaths

Our condition was only checking executables, which missed some non
executable libraries.
1 job for fix/testcase-check-non-executable-rpath
in 0 seconds, using 0 compute credits, and was queued for 0 seconds