Install the curl-ca-bundle when installing mutt.

This is used for various ssl activities.
More accurate check for installed packages.

Sometimes the brew package name is not the same name of the binary
that gets installed. Also, sometimes the system has a binary installed
but we still want to use homebrew's version.

This is a better way to check if a package was installed via `brew`.