ensure metafiles being installed to prefix rather than libexec
ensure metafiles being installed to prefix rather than libexec

This is a follow-up of Homebrew/homebrew#37734. I think we should treat `install_metafiles` as
a general issue rather than a formula-specific one.

Closes Homebrew/homebrew#37968.

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

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