implements HOMEBREW_INSTALL_SEARCH_FALLBACK option