make install.sh work with all git configurations