Fix regression in chocolatey.bootstrap

Fixes #10541.