language/node: make packname detection more robust
language/node: make packname detection more robust

This fixes some edge cases where verbose output from a prepublish script
could break our npm pack package name detection code by only using the
last line of the output printed by npm itself containing the desired
package name.

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