Fix wine installation detection