fixed the bug that sysguard module didn't work with Mac OS.