Ensuring error_log_dir is a string.