[TIDOC-1050] Fix validate script