Make string replacement for -y resources correct.