Cleanup output of .sh versions of setchplenv.

Use printf to print strings that should not have a new line char. I copied the
.bash versions and substitued `printf` for `echo -n`.