Added root check compatible with win32