gitweb: Fix and simplify "split patch" detection