Fix local installation of bottles.

Fixes #18631.