Add optional argument to check min-version of a package.