Fixed pipes and redirecting stdout