color program name only on posix and inside a tty

as suggested by @tomerfiliba