MULE-7367: backporting distribution conditionals to 3.2 maintenance branch