Improved Windows paths handling