improved version detection avoid file data overhead in hash algorithm