configure: Fixed check of Python library version.

Debian and Ubuntu also have python-2.7.pc file in python-dev package, so this
one is the common point.