Moving OS definitions to json / yaml files?

I’ve submitted a pull request with the proposed changes / format.