fix pleasant progress throwing error when ran from child_process.exec, references #434
check if stdout is TTY before trying to clearLine or cursorTo(0)
Merge pull request #435 from jakecraige/fix-pleasant-progress

fix pleasant progress throwing error when ran from child_process.exec, r...