Ah, the issue was that I was building from the top level directory:

$ sh mac/build.sh 1.5.22.1

I think we should be able to run this from outside of the directory, but it doesn't need to be covered here.