Fix invalid conditional in mac/zsh-fix

In the process, I rewrote bin/build a little bit. echo without the -e 
was printing a literal "\n" into the generated scripts.

Since the build script is `sh` and `echo -e` is not portable, I changed 
them all to `printf` calls. While there, I addressed a few other total 
nit picks.