Zookeeper: Yosemite fixes

Closes #32900.
Thank you! I wanted to phrase it like that but I couldn't quite remember the correct syntax so went for what I was certain on. Very happy to change :+1: