remove useless output redirections