Properly detect 256 colors xterms