Ensure log_path exists before creating FileHandler