patched os detection