Bugfix to ready_pipe.pl