fix path::IsSame for when GetFileInformationByHandle returns only partial information (fixes issue 2742)