handle inf file correctly for different windows version