Fix support for platform specific patches.
Fix the broken support for platform specific patches. We could potentially use VERSION_PRODUCT instead of TARGET_FAMILY. However, the need to do the lower case conversion is much more obvious when using TARGET_FAMILY.