Change method to determine if git should be used or not