Problems with posix_isatty

I have some PHP installations that don't have the posix extension installed, so whenever there is any output that checks to see if it should include ANSI characters or not, there is a fatal error.

This pull request basically assumes that STDOUT is not a tty if the function doesn't exist in the first place.