Encode distribution in the version

This prevents collisions when uploading the same package to different
distributions.

Change-Id: I0412d834509fae6a57de2e9d7c70e71df797a014