Correcting regex match

Stops paths such as test_git, testgit etc.. being matched