Fixed the detection of the color support in the installer

- support colors on Windows in ConEmu
- make the detection work without the posix extension. Closes composer/composer#2374