Improve interaction with gemini: handle cases with partially broken gemini installs and avoid multiple callouts to check for gemini when retrieving variant attributes