Moved normalize_logdir() out of data_log.