Use sys.platform == 'win32' to match the rest of the code