Fix script on Linux (make _winreg conditional import for Windows)