Make prepare-cmsdist work with git.
Merge pull request #5 from ktf/prepare-cmsdist-for-git

Make prepare-cmsdist work with git.