fixed version.txt check