Zookeeper: Yosemite fixes

Closes #32900.
Are we going back to ``` if build.includes? "perl" ``` on this bit?