git-cms-addpkg: clean up unused variables
limit the check of the local tree to the index (staged but not committed files)