[tools] Fix license validation check.