Another pass at envars.

  This partially reverts 37b1291fcf4f4180c66285941f591f6d65f55df9
  It looks like ruby globals $<var> are used by mkmf.rb (cf create_makefile)