Use the same environment variable for the initial flags that we use for the compiler id. Fixes: #17250