Fix shared flag logic error

Shared plugins without a client file were not being detected properly.