This fixes an issue where the log file is written to the original directory, even if --working-directory=path was used. This can obviously be pretty bad.