pub fn get_env_var(key: &str) -> Result<String>
Returns an environment variable with fallback to settings.