gitweb: Simplify snapshot format detection logic in evaluate_path_info