Detect cygwin before ubuntu.

The old way caused an error since lsbrelase is not availible in cygwin