Fix some os related issues

We should refactor the method `os_object` to not have a static list of classes but to check if the class name exists, similar to our inspectors.