Create a `truncate_platform_version` helper

This allows the truncation logic to be used in both `Omnibus::Project`
and the publishers.
Truncate platform versions in all publishers