fixed detection of version on windows