Fix clone to setup the origin if its name ends with .git