use dotenv to store config vars
generalized datadir interpolation

to support using any fact and not just environment