Check `*-config --libs` commands too.

Since I want to use it in rust-mecab.
This seems like it will be a confusing error as `e_cfg` may not be related to `e_pkg` or vice-versa.