extract_unity_shaders: Fix bug consuming headers without appending them