Fix for tests when Mercurial or git are not available
Merge remote-tracking branch 'RobLoach/versioncontrolnotfound'
Use ExecutableFinder instead of relying on exit codes, refs #1829