normalize paths
Changing match mode resets search