Use client to test if we're in a tty and inform the builder

Created by: AdamSimpson

Don't run through unbuffer if the client isn't running a tty