Use && instead of || when looking for all libraries

Fixes a typo in recent library search overhaul