Supporting two types of versions -- tag & SHA1