cmserver: short-circuit expensive filepath.Match() call

If we've already matched on this directory, we'll match this time too.
Actually calling filepath.Match() is just overhead.