Fix for searching GIT and HG repositories