Added name-match and latest-only option

Should fix issues #129, #139 and #158
you should use ``$package->getVersion()`` rather than ``$package->getPrettyVersion()``. ``$package->getPrettyVersion()`` is not compable easily