Fix error when git is missing