Include check for os_version in task inheritance