Fix stand/newvers.sh with zsh in sh mode
When building on macOS with sh==zsh, newvers.sh was producing an
unterminated string literal due to \\n being turned as a newline. Fix this
by using a here document instead.
(cherry picked from commit cad2917baf6e8d90720f5bfb2463dfa7be35f568)