Don't chmod -R 0777 before uninstalling
Don't chmod -R 0777 before uninstalling

If the user owns the parent directory we have the rights to rmtree. At least I believe so.

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