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

Since I want to use it in rust-mecab.
Why is this altering `PATH`? Shouldn't the `foo-config` program be in `PATH` already?