fn detect_gcc_sha(config: &Config, is_git: bool) -> String
This retrieves the GCC sha we want to use, according to git history.