improve setup, so we detect git version