directory adjustments and exclude --no color option from windows

Force encoding only on newer versions of ruby