Merge pull request #92 from smuzaffar/V00-21-XX

--tag option and fix for subpackages
Merge pull request #95 from smuzaffar/V00-21-XX

back port latest changes from V00-22
Merge pull request #96 from smuzaffar/V00-21-XX

check for sub-packages after processing all the IMPORTS
make sure that git does not ask for creating ref and hang