Fix third-party header parser to allow more than 2 path elements.