fix the package matching function in setup.py