Better detection of ANSI escape codes support [closes #18]

This also solves the issue of colors not printing in RingoJS, as mentioned by @mathiasbynens in #15.