Detect cygwin and do not add extension.