libexport.a: Refactor wildcard checking in client_check()