Get the basename and dirname once
Get the basename and dirname once

amar-laksh/brew_sudo,gregory-nisbet/brew,EricFromCanada/brew,mistydemeo/homebrew,konqui/brew,pseudocody/brew,mahori/brew,DomT4/brew,palxex/brew,muellermartin/dist,JCount/brew,palxex/brew,muellermartin/dist,hanxue/linuxbrew,Homebrew/brew,sjackman/homebrew,mgrimes/brew,mahori/brew,reelsense/brew,mistydemeo/homebrew,toonetown/homebrew,amar-laksh/brew_sudo,konqui/brew,mgrimes/brew,toonetown/homebrew,alyssais/brew,alyssais/brew,claui/brew,tonyg/homebrew,MikeMcQuaid/brew,JCount/brew,konqui/brew,nandub/brew,toonetown/homebrew,gordonmcshane/homebrew,sjackman/homebrew,Linuxbrew/brew,muellermartin/dist,alyssais/brew,bfontaine/brew,amar-laksh/brew_sudo,AnastasiaSulyagina/brew,claui/brew,Linuxbrew/brew,claui/brew,sjackman/homebrew,claui/brew,ilovezfs/brew,jmsundar/brew,nandub/brew,staticfloat/brew,gordonmcshane/homebrew,aw1621107/brew,mgrimes/brew,reitermarkus/brew,AnastasiaSulyagina/brew,reitermarkus/brew,maxim-belkin/brew,MikeMcQuaid/brew,maxim-belkin/brew,ilovezfs/brew,zmwangx/brew,reelsense/brew,nandub/brew,bfontaine/brew,maxim-belkin/brew,reitermarkus/brew,aw1621107/brew,reelsense/brew,mahori/brew,Linuxbrew/brew,hanxue/linuxbrew,zmwangx/brew,rwhogg/brew,rwhogg/brew,sjackman/homebrew,vitorgalvao/brew,zmwangx/brew,JCount/brew,JCount/brew,aw1621107/brew,Linuxbrew/brew,pseudocody/brew,tonyg/homebrew,gregory-nisbet/brew,nandub/brew,hanxue/linuxbrew,jmsundar/brew,DomT4/brew,Homebrew/brew,vitorgalvao/brew,ilovezfs/brew,EricFromCanada/brew,mahori/brew,mistydemeo/homebrew,MikeMcQuaid/brew,EricFromCanada/brew,Homebrew/brew,gregory-nisbet/brew,reitermarkus/brew,DomT4/brew,staticfloat/brew,jmsundar/brew,EricFromCanada/brew,rwhogg/brew,bfontaine/brew,DomT4/brew,pseudocody/brew,Homebrew/brew,vitorgalvao/brew,vitorgalvao/brew,palxex/brew,AnastasiaSulyagina/brew,MikeMcQuaid/brew,tonyg/homebrew,gordonmcshane/homebrew,staticfloat/brew,konqui/brew