Fix getLine with no stdout output