build script improvements

* dump the verbose output to a log file
* get all environment variables in a consistent way (from Xcode)
* turn off the `debug` option when running buildDMG.pl