stdenv: Fix handling spaces in 'substitute'
stdenv: change 'echo -n' to 'printf "%s"'