Better git url handling