Merge pull request #97 from smuzaffar/V00-22-XX

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