Add optional argument to check min-version of a package

Hi:

In part this change is necessary for https://github.com/cask/cask/pull/232, because there is no a way to determine if a package is installed with a `min-version` without using `package.el` directly.
Use `and` instead of `when` here.