Bugfix. Redirection of STDERR was based on file descriptor, but filename was provided. Using filename now. #1939