Small fix to handle stderr properly