preinstall: update peerDeps before global install

Using node as a portable scripting language, install adequate versions
of our peerDependencies globally when we are installed globally
ourselves.