Update tags when pulling from git.

Also add support for specifying tag or hash for the released
version.
Understand ranges of package indices.
Clean pycifrw package if previous build failed.

An empty CifFile.py from a failed build would make all the
subsequent builds fail as well.