Fix predicate testing if git is needed

The uses the same predicate in the current MITK/SuperBuild.cmake