Use existing environment variables in .env values

I needed to use some existing environment variables when creating the .env for certain systems.  As is, dotenv does nothing but strip the outside quotes from the values.  All this commit adds is calling os.path.expandvars() to replace variables with their values.