Detect pnpm workspaces and run `pulumi install` from the workspace root. Note that this change does not address issues with function serialisation in pnpm workspaces. Fixes https://github.com/pulumi/pulumi/issues/15512