cleaner: reorganize clean_dir to avoid repeated conditional
cleaner: reorganize clean_dir to avoid repeated conditional

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