generate .env from config file