Fix for Windows path handle