Fix: selfupdate failed as ANTIGEN_INSTALL_DIR was not exported.
Use git itself to check if ANTIGEN_INSTALL_DIR is a git repository.