Improved the version check for gplates.