Make /etc/os-release support common

The existing code is used in multiple places with slightly different
implementations.
11 jobs for os-release-consolidate in 3 minutes and 18 seconds (queued for 1 second)