refactored the code to determine the shard directory prior to processing and other code.
refactored the code to determine the shard directory prior to processing
and other code.

devopscenter/dcUtils,devopscenter/dcUtils