stdenv/setup.sh: make substitute* not drop EOF newline

This should solve #1982.