Fix comment block. Unify check of file extensions.