tomprince/gemrb — comment on commit 4a826879ef513376dd7997db0500841e3a8c6410
File:  line 0
By tomprince:

Also, your heuristic won't work, if somebody just copies their game folder from a windows machine, and then renames the directory. I suspect this isn't uncommon.