BuildDepends: Correct the generation of header.txt.

Now you can run the test multiple times without having bad state
propagated from the first run, causing all futures runs to fail.
Merge topic 'ninja_bad_cmcldeps_paths' into next

3ac978f BuildDepends: Correct the generation of header.txt.