Fix for Windows detection