41010c527d
Prepend a PATH export to every hook command that invokes node, so that /bin/sh can locate the binary when Node.js is managed by nvm or installed via Homebrew. Falls back gracefully when nvm is not present. Closes #1598