Show tap/path for non-core formulae on build failure

Closes #16373.
Closes #20725.
Use 'path or URL' as tap for non-tap, non-core formulae