pathname: skip directory in env_script_all_files
pathname: skip directory in env_script_all_files

Closes Homebrew/homebrew#37180.

Signed-off-by: Xu Cheng <9a05244150b861e40c78843b801eed71bca54eac@me.com>

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