teeboth: Make STDIN available to a subprocess

Otherwise tests in ack.spec fails, as ack tests if its stdin is a pipe
or not and changes its behaviour based on it.