fix awe error when stdout / stderr is empty string