Better fix for Windows path check.