$CFG->tempdir might contain both / and \ in Windows. Therefore, we need to call realpatch() to be able to compare that with another patch.