Fix Operating system dist regex logic to behave correctly

The dist regex match doesnt quite work correctly today. Fixing the
logic to use case to match the appropriate values and get the
correct dist value.

Change-Id: Ib7c73edd12d7e5e8feeb556a8928d708db8a482c