Fix package match logic; bump version to 2.1.0

* Fix some bug when do match package name.
* add tests for the logic
* add some gitignore
update gitignore