Ensure gemini configuration written before checking download dependencies to allow for easier restarts during failure