Use name of formula rather than name of dependency

Closes #27192.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>