Print build environment in summary.

Changed
=======
* When prepending a path to an environment variable, if the path already
  appears in the variable, remove it and move it to the front.