Convert env vars to flags