I initially had an inline if, but as the windows pattern has nothing to be with the unix one, I preferred to have an explicit if. Otherwise it seems that both patterns *must* use the "group 1" for the version, when that's just a coincidence. I can change it back if you think it is more readable, though.