Some changes to the version retrieval: ignore shallow clones