fix ERB config files per stage