Added option to force stream to be treated like a TTY.

Currently, if one uses `child_process.spawn` to launch a script that uses `ProgressBar`, it will throw an exception or will not output to the terminal (on OSX). This patch adds an option to force readline to treat the stream it is given as a TTY. This prevents the exception and reenables output.