Improve version check for policy CMP0020