driver: unbreak module header parsing for recursive build