use NIX_*_DIR env vars when defined

Created by  Rob Vermaas  on March 16, 2011
W3HI52QVYQUEMJDK6TI54WPNDQJOHYD47G45LNMI2YTH6YGKNXNQC
Change contents