mdp_version: Check define for each version

Some of the definitions may not be present on AOSP builds while
other may. Check each definition to be sure.

Change-Id: Ia3cf8f024a3a6b6633a3be4646579f6cde0d5580