Fix command name string written to log file.