Fix predicate testing if git is needed