yafc: Fix build on 10.9, and fix the bash-completion script.

Closes #24688