Use shared_path instead of current_path for log file path.