Make prepare-cmsdist work with git.