Correctly capture stderr