Make log_path in a better way