bin/brew: avoid unnecessary 'readlink' invocation
bin/brew: avoid unnecessary 'readlink' invocation

For typical installations where `brew` is not a symbolic link, this
reduces the number of processes that need to be spawned.

Closes #46269.

Signed-off-by: Martin Afanasjew <54669547a225ff20cba8b75a4adca540eef25858@afanasjew.de>

geoff-codes/homebrew,pdpi/homebrew,manphiz/homebrew,dunn/homebrew,ablyler/homebrew,kodabb/homebrew,deorth/homebrew,AlexejK/homebrew,Angeldude/linuxbrew,manphiz/homebrew,yazuuchi/homebrew,theeternalsw0rd/homebrew,royhodgman/homebrew,ento/homebrew,koraktor/homebrew,eighthave/homebrew,ebouaziz/linuxbrew,osimola/homebrew,pdxdan/homebrew,pdpi/homebrew,Chilledheart/homebrew,bukzor/linuxbrew,sometimesfood/homebrew,chadcatlett/homebrew,MartinDelille/homebrew,eighthave/homebrew,iandennismiller/homebrew,nelstrom/homebrew,eighthave/homebrew,brunchboy/homebrew,vigo/homebrew,ehamberg/homebrew,Asuranceturix/homebrew,ilovezfs/homebrew,SteveClement/homebrew,mmizutani/homebrew,alebcay/homebrew,Homebrew/linuxbrew,dalanmiller/homebrew,scpeters/homebrew,petere/homebrew,ybott/homebrew,OJFord/homebrew,jiashuw/homebrew,ear/homebrew,Homebrew/homebrew,iostat/homebrew2,quantumsteve/homebrew,teslamint/homebrew,emcrisostomo/homebrew,petere/homebrew,royhodgman/homebrew,thinker0/homebrew,hyuni/homebrew,codeout/homebrew,dalanmiller/homebrew,frodeaa/homebrew,vigo/homebrew,osimola/homebrew,ablyler/homebrew,dgageot/homebrew,davydden/linuxbrew,MoSal/homebrew,arnested/homebrew,zhipeng-jia/homebrew,influxdb/homebrew,miketheman/homebrew,chadcatlett/homebrew,davidcelis/homebrew,AGWA-forks/homebrew,booi/homebrew,joshfriend/homebrew,cchacin/homebrew,ebouaziz/linuxbrew,apjanke/homebrew,TaylorMonacelli/homebrew,davidcelis/homebrew,danieroux/homebrew,filcab/homebrew,thinker0/homebrew,esamson/homebrew,AlexejK/homebrew,xcezx/homebrew,danieroux/homebrew,princeofdarkness76/homebrew,benjaminfrank/homebrew,lrascao/homebrew,AlexejK/homebrew,teslamint/homebrew,cscetbon/homebrew,3van/homebrew,sakra/homebrew,theeternalsw0rd/homebrew,jarrettmeyer/homebrew,AGWA-forks/homebrew,pcottle/homebrew,SteveClement/homebrew,ehamberg/homebrew,OJFord/homebrew,feelpp/homebrew,dickeyxxx/homebrew,johanhammar/homebrew,mactkg/homebrew,gicmo/homebrew,scpeters/homebrew,SuperNEMO-DBD/cadfaelbrew,yumitsu/homebrew,utzig/homebrew,davidcelis/homebrew,iostat/homebrew2,kenips/homebrew,Habbie/homebrew,ento/homebrew,dalanmiller/homebrew,cosmo0920/homebrew,codeout/homebrew,adamliter/homebrew,jiashuw/homebrew,bigbes/homebrew,esamson/homebrew,galaxy001/homebrew,skatsuta/homebrew,polishgeeks/homebrew,booi/homebrew,gnubila-france/linuxbrew,decors/homebrew,SteveClement/homebrew,jconley/homebrew,dickeyxxx/homebrew,dunn/homebrew,nandub/homebrew,bigbes/homebrew,ge11232002/homebrew,Asuranceturix/homebrew,mkrapp/homebrew,BrewTestBot/homebrew,jarrettmeyer/homebrew,mkrapp/homebrew,bukzor/linuxbrew,marcwebbie/homebrew,pdxdan/homebrew,dkotvan/homebrew,hongkongkiwi/homebrew,ge11232002/homebrew,hakamadare/homebrew,danieroux/homebrew,MartinDelille/homebrew,vigo/homebrew,iostat/homebrew2,kenips/homebrew,cosmo0920/homebrew,joshua-rutherford/homebrew,slyphon/homebrew,polishgeeks/homebrew,slyphon/homebrew,MoSal/homebrew,gawbul/homebrew,marcwebbie/homebrew,dplarson/homebrew,alebcay/homebrew,royhodgman/homebrew,danieroux/homebrew,gnubila-france/linuxbrew,influxdata/homebrew,joshua-rutherford/homebrew,kodabb/homebrew,cprecioso/homebrew,SuperNEMO-DBD/cadfaelbrew,reelsense/linuxbrew,ablyler/homebrew,Gasol/homebrew,LinusU/homebrew,ryanfb/homebrew,koraktor/homebrew,bukzor/linuxbrew,johanhammar/homebrew,drbenmorgan/linuxbrew,haihappen/homebrew,sjackman/linuxbrew,dericed/homebrew,koraktor/homebrew,Habbie/homebrew,pcottle/homebrew,jsjohnst/homebrew,iandennismiller/homebrew,jiashuw/homebrew,kevinastone/homebrew,booi/homebrew,retrography/homebrew,tjschuck/homebrew,iandennismiller/homebrew,pcottle/homebrew,retrography/homebrew,michaKFromParis/homebrew-sparks,polishgeeks/homebrew,lrascao/homebrew,dutchcoders/homebrew,dickeyxxx/homebrew,recruit-tech/homebrew,cscetbon/homebrew,geoff-codes/homebrew,quantumsteve/homebrew,saketkc/linuxbrew,princeofdarkness76/homebrew,elyscape/homebrew,frodeaa/homebrew,utzig/homebrew,optikfluffel/homebrew,skatsuta/homebrew,georgschoelly/homebrew,felixonmars/homebrew,mactkg/homebrew,haihappen/homebrew,menivaitsi/homebrew,jarrettmeyer/homebrew,arnested/homebrew,osimola/homebrew,tutumcloud/homebrew,reelsense/homebrew,yazuuchi/homebrew,mobileoverlord/homebrew-1,drewwells/homebrew,emcrisostomo/homebrew,zhipeng-jia/homebrew,getgauge/homebrew,menivaitsi/homebrew,thinker0/homebrew,manphiz/homebrew,hongkongkiwi/homebrew,deorth/homebrew,miketheman/homebrew,ryanfb/homebrew,filcab/homebrew,polishgeeks/homebrew,Habbie/homebrew,apjanke/homebrew,hanxue/homebrew,yangj1e/homebrew,ralic/homebrew,keith/homebrew,cchacin/homebrew,nelstrom/homebrew,ExtremeMan/homebrew,georgschoelly/homebrew,scorphus/homebrew,BrewTestBot/homebrew,keith/homebrew,Angeldude/linuxbrew,influxdata/homebrew,felixonmars/homebrew,jab/homebrew,jarrettmeyer/homebrew,skinny-framework/homebrew,SteveClement/homebrew,jconley/homebrew,hanxue/homebrew,3van/homebrew,elgertam/homebrew,petere/homebrew,skatsuta/homebrew,influxdb/homebrew,drbenmorgan/linuxbrew,jamer/homebrew,dericed/homebrew,treyharris/homebrew,redpen-cc/homebrew,brunchboy/homebrew,knpwrs/homebrew,mobileoverlord/homebrew-1,Asuranceturix/homebrew,saketkc/linuxbrew,gawbul/homebrew,drewwells/homebrew,sferik/homebrew,megahall/homebrew,feelpp/homebrew,elyscape/homebrew,xcezx/homebrew,kevinastone/homebrew,getgauge/homebrew,tutumcloud/homebrew,hakamadare/homebrew,elgertam/homebrew,cprecioso/homebrew,sometimesfood/homebrew,davydden/linuxbrew,retrography/homebrew,razamatan/homebrew,gicmo/homebrew,Homebrew/homebrew,heinzf/homebrew,petere/homebrew,zeha/homebrew,patrickmckenna/homebrew,Linuxbrew/linuxbrew,sometimesfood/homebrew,mobileoverlord/homebrew-1,frickler01/homebrew,drewwells/homebrew,Linuxbrew/linuxbrew,dplarson/homebrew,OJFord/homebrew,ryanfb/homebrew,zeha/homebrew,scorphus/homebrew,ybott/homebrew,felixonmars/homebrew,arnested/homebrew,muellermartin/homebrew,mkrapp/homebrew,cchacin/homebrew,hakamadare/homebrew,benjaminfrank/homebrew,Red54/homebrew,utzig/homebrew,jiashuw/homebrew,liamstask/homebrew,pdpi/homebrew,ralic/homebrew,afh/homebrew,sakra/homebrew,ento/homebrew,cosmo0920/homebrew,ge11232002/homebrew,benjaminfrank/homebrew,elyscape/homebrew,dgageot/homebrew,saketkc/linuxbrew,reelsense/homebrew,hakamadare/homebrew,gicmo/homebrew,recruit-tech/homebrew,galaxy001/homebrew,dplarson/homebrew,mmizutani/homebrew,totalvoidness/homebrew,razamatan/homebrew,dkotvan/homebrew,scorphus/homebrew,patrickmckenna/homebrew,scorphus/homebrew,cosmo0920/homebrew,skinny-framework/homebrew,youtux/homebrew,knpwrs/homebrew,kenips/homebrew,MoSal/homebrew,alebcay/homebrew,blogabe/homebrew,ExtremeMan/homebrew,AlexejK/homebrew,optikfluffel/homebrew,chadcatlett/homebrew,nelstrom/homebrew,Chilledheart/homebrew,bigbes/homebrew,sjackman/linuxbrew,saketkc/linuxbrew,decors/homebrew,adamliter/homebrew,vigo/homebrew,kevinastone/homebrew,drbenmorgan/linuxbrew,totalvoidness/homebrew,scpeters/homebrew,georgschoelly/homebrew,ear/homebrew,utzig/homebrew,ear/homebrew,ybott/homebrew,treyharris/homebrew,dericed/homebrew,princeofdarkness76/homebrew,MoSal/homebrew,miketheman/homebrew,dunn/homebrew,teslamint/homebrew,ehamberg/homebrew,davidcelis/homebrew,esamson/homebrew,theeternalsw0rd/homebrew,lvicentesanchez/homebrew,ebouaziz/linuxbrew,michaKFromParis/homebrew-sparks,frodeaa/homebrew,frickler01/homebrew,manphiz/homebrew,Asuranceturix/homebrew,xcezx/homebrew,lvicentesanchez/homebrew,princeofdarkness76/homebrew,johanhammar/homebrew,alebcay/homebrew,lrascao/homebrew,hanxue/homebrew,knpwrs/homebrew,keith/homebrew,razamatan/homebrew,dgageot/homebrew,marcwebbie/homebrew,Asuranceturix/homebrew,tschoonj/homebrew,haihappen/homebrew,gicmo/homebrew,muellermartin/homebrew,TaylorMonacelli/homebrew,dongcarl/homebrew,sakra/homebrew,Angeldude/linuxbrew,dkotvan/homebrew,lvicentesanchez/homebrew,pdxdan/homebrew,kodabb/homebrew,3van/homebrew,zchee/homebrew,osimola/homebrew,youtux/homebrew,bigbes/homebrew,galaxy001/homebrew,muellermartin/homebrew,davydden/linuxbrew,yangj1e/homebrew,heinzf/homebrew,mmizutani/homebrew,LinusU/homebrew,skinny-framework/homebrew,sferik/homebrew,hyuni/homebrew,recruit-tech/homebrew,influxdata/homebrew,tschoonj/homebrew,yumitsu/homebrew,base10/homebrew,tjschuck/homebrew,LinusU/homebrew,totalvoidness/homebrew,ExtremeMan/homebrew,geoff-codes/homebrew,sakra/homebrew,nandub/homebrew,mactkg/homebrew,jab/homebrew,hyuni/homebrew,megahall/homebrew,afh/homebrew,tutumcloud/homebrew,elgertam/homebrew,xcezx/homebrew,eighthave/homebrew,MartinDelille/homebrew,redpen-cc/homebrew,josa42/homebrew,iandennismiller/homebrew,cscetbon/homebrew,Homebrew/homebrew,DoomHammer/linuxbrew,Homebrew/linuxbrew,base10/homebrew,ablyler/homebrew,afh/homebrew,gnubila-france/linuxbrew,Angeldude/linuxbrew,decors/homebrew,mobileoverlord/homebrew-1,base10/homebrew,joshua-rutherford/homebrew,dgageot/homebrew,ilovezfs/homebrew,Chilledheart/homebrew,3van/homebrew,joshua-rutherford/homebrew,Chilledheart/homebrew,liamstask/homebrew,zchee/homebrew,influxdb/homebrew,skatsuta/homebrew,blogabe/homebrew,gawbul/homebrew,zhipeng-jia/homebrew,Homebrew/linuxbrew,optikfluffel/homebrew,ExtremeMan/homebrew,cprecioso/homebrew,nandub/homebrew,influxdb/homebrew,arnested/homebrew,Red54/homebrew,apjanke/homebrew,SteveClement/homebrew,slyphon/homebrew,feelpp/homebrew,feelpp/homebrew,zchee/homebrew,AGWA-forks/homebrew,SuperNEMO-DBD/cadfaelbrew,gnubila-france/linuxbrew,jsjohnst/homebrew,dkotvan/homebrew,redpen-cc/homebrew,MartinDelille/homebrew,ge11232002/homebrew,Red54/homebrew,TaylorMonacelli/homebrew,dickeyxxx/homebrew,frodeaa/homebrew,pcottle/homebrew,Homebrew/linuxbrew,zeha/homebrew,ybott/homebrew,getgauge/homebrew,zchee/homebrew,patrickmckenna/homebrew,sferik/homebrew,royhodgman/homebrew,youtux/homebrew,Homebrew/homebrew,menivaitsi/homebrew,johanhammar/homebrew,slyphon/homebrew,thinker0/homebrew,kodabb/homebrew,galaxy001/homebrew,yazuuchi/homebrew,yazuuchi/homebrew,reelsense/linuxbrew,geoff-codes/homebrew,tschoonj/homebrew,blogabe/homebrew,hongkongkiwi/homebrew,Linuxbrew/linuxbrew,patrickmckenna/homebrew,yangj1e/homebrew,jab/homebrew,menivaitsi/homebrew,tjschuck/homebrew,dutchcoders/homebrew,quantumsteve/homebrew,decors/homebrew,filcab/homebrew,deorth/homebrew,razamatan/homebrew,LinusU/homebrew,blogabe/homebrew,BrewTestBot/homebrew,Red54/homebrew,teslamint/homebrew,reelsense/linuxbrew,joshfriend/homebrew,benjaminfrank/homebrew,frickler01/homebrew,jconley/homebrew,afh/homebrew,ralic/homebrew,dalanmiller/homebrew,brunchboy/homebrew,treyharris/homebrew,cprecioso/homebrew,Linuxbrew/linuxbrew,DoomHammer/linuxbrew,ento/homebrew,reelsense/homebrew,megahall/homebrew,theeternalsw0rd/homebrew,drewwells/homebrew,totalvoidness/homebrew,SuperNEMO-DBD/cadfaelbrew,filcab/homebrew,dongcarl/homebrew,sjackman/linuxbrew,sometimesfood/homebrew,heinzf/homebrew,nandub/homebrew,knpwrs/homebrew,redpen-cc/homebrew,BrewTestBot/homebrew,ehamberg/homebrew,hongkongkiwi/homebrew,joshfriend/homebrew,emcrisostomo/homebrew,lvicentesanchez/homebrew,jconley/homebrew,zeha/homebrew,esamson/homebrew,hyuni/homebrew,dongcarl/homebrew,dericed/homebrew,DoomHammer/linuxbrew,DoomHammer/linuxbrew,influxdata/homebrew,adamliter/homebrew,tschoonj/homebrew,tjschuck/homebrew,ear/homebrew,yangj1e/homebrew,elgertam/homebrew,muellermartin/homebrew,apjanke/homebrew,jamer/homebrew,Gasol/homebrew,reelsense/homebrew,nelstrom/homebrew,pcottle/homebrew,elyscape/homebrew,koraktor/homebrew,haihappen/homebrew,ralic/homebrew,ryanfb/homebrew,codeout/homebrew,frickler01/homebrew,emcrisostomo/homebrew,youtux/homebrew,jamer/homebrew,keith/homebrew,OJFord/homebrew,josa42/homebrew,zhipeng-jia/homebrew,felixonmars/homebrew,heinzf/homebrew,brunchboy/homebrew,quantumsteve/homebrew,TaylorMonacelli/homebrew,scpeters/homebrew,michaKFromParis/homebrew-sparks,codeout/homebrew,kenips/homebrew,jsjohnst/homebrew,bukzor/linuxbrew,dutchcoders/homebrew,pdpi/homebrew,liamstask/homebrew,cchacin/homebrew,reelsense/linuxbrew,ilovezfs/homebrew,adamliter/homebrew,Gasol/homebrew,sferik/homebrew,tutumcloud/homebrew,iostat/homebrew2,megahall/homebrew,jsjohnst/homebrew,yumitsu/homebrew,ebouaziz/linuxbrew,dutchcoders/homebrew,AGWA-forks/homebrew,dplarson/homebrew,getgauge/homebrew,kevinastone/homebrew,ilovezfs/homebrew,optikfluffel/homebrew,recruit-tech/homebrew,Gasol/homebrew,pdxdan/homebrew,skinny-framework/homebrew,marcwebbie/homebrew,josa42/homebrew,Habbie/homebrew,sjackman/linuxbrew,dunn/homebrew,treyharris/homebrew,base10/homebrew,dongcarl/homebrew,retrography/homebrew,davydden/linuxbrew,jab/homebrew,hanxue/homebrew,drbenmorgan/linuxbrew,jamer/homebrew,georgschoelly/homebrew,miketheman/homebrew,mactkg/homebrew,liamstask/homebrew,mmizutani/homebrew