fixing up make-gopear-phar.php and make-installpear-nozlib-phar.php

I had to generate a install-pear-nozlib.phar file and I've realized that the current buildscript for these two files are broken currently.

5 of the 8 commits are necessary for building the files, two from the remaining three are typo fixes and the last one is a trivial switch from the ereg match to preg.