Snow Leopard: build.sh -  Fix error in generate makefile function