adds `isatty` to check whether stdin is a terminal or a file/pipe.