allow installation of formulae from the current folder

Closes #19177.