Make fix_install_names more robust
Make fix_install_names more robust

fixes a problem with the opencv formula

Closes Homebrew/homebrew#10291.

Signed-off-by: Jack Nagel <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>

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