fix simple_command redirect failure