Add debug flags if git checkout is present.