Bringing over changes that were made to pack_source.sh on the build machine. [0]
Fixed some things that were causing PHP to complain. [0]

For posterity, the "processdocs" Ant target was generating the
following output.

processdocs:
     [exec] PHP Notice:  Undefined variable: DEBUG in <PATH> on line 85
     [exec] PHP Notice:  Undefined variable: EMAIL in <PATH> on line 86
     [exec] sendmail: fatal: mcidasv(53660): No recipient addresses
found in message header
     [exec] nothing to do...