MDL-38654 add full $CFG->gdversion backwards compatibility for now