Fix windows tests

This change incorporates @tagomoris 's fixes to the parser, as well as change in rules of generating files. Namely, in go any file name containing the word "windows" will only run on windows, and that's why our tests for pc_windows_test.go never ran.

This revealed another bug in detection of Tident version, which has now been fixed.