utils: Convenience function for checking OS/Version

Change-Id: I60b32168b4d5e5ede84b31e23b4d26a782d1f283
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>