Fix get function of gcc version number