Bash: extract local node module path to component.