make install.sh work with all git configurations

Hi

install.sh is not working on my laptop.
Code below might be a more standard way to checkout the wanted tag