GdalTools: use int to compare versions (fixes #8323)