Use managed_pkg/1 for the easy cases.

It works whenever brew and apt use the same package name.