Fix incorrect warning for 'foo > bar 2> bar'