cmake: check for date-based patch versions
If the patch is a date-based number, use it directly. While this does
make some ambiguities, we're within a day of the commit at least. The
issue for the superbuild is that the -N-gXXXXX
suffix to the version
is making the Windows paths too long.