use go-isatty

To use go-isatty instead of own implementation.
go-isatty supports BSD.