Fixed gdb version parser code and bugs ups.