wincred: improve compatibility with windows versions