internal/CheckCompilerFlag: rely on common configuration Extract configuration step from the CheckCompilerFlag command to enable to share it with future CheckLinkerFlag implementation