libgit-eventc: Only detect path prefixes

Avoid funny situations: "src/lib/main. c h"

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>