added check for if input comes from a terminal or a pipe
version 1.3.6