add - logic to revert handling extraction of latest tag.

Change-Id: I13bb48b9e2a6d838fad3b8eb3f7520a8a939876b