Properly tee stdout and stderr to the console as well as their separate files.