buildenv: fix OS X's setup.command to not use $MUMBLE_PREFIX.

Also fix some stdout and stderr redirecting for some of the
script's external commands.