Fix bug 1046443: Incorrect stderr redirect