Add quotes around variables when running dirname

If a user happens to have spaces in the path name,
`scripts/bootstrap/buildenv.sh` will fail with the error `usage: dirname
path`. Quoting the argument to `dirname` when setting `WORKSPACE_DIR`
avoids this issue.

Closes #2030.

--
Reviewed-on: https://github.com/bazelbuild/bazel/pull/2030
PiperOrigin-RevId: 141067912
MOS_MIGRATED_REVID=141067912
diff --git a/scripts/bootstrap/buildenv.sh b/scripts/bootstrap/buildenv.sh
index 8345dc3..dbd7d24 100755
--- a/scripts/bootstrap/buildenv.sh
+++ b/scripts/bootstrap/buildenv.sh
@@ -32,7 +32,7 @@
 
 # Set standard variables
 DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
-WORKSPACE_DIR="$(dirname $(dirname ${DIR}))"
+WORKSPACE_DIR="$(dirname "$(dirname "${DIR}")")"
 
 JAVA_VERSION=${JAVA_VERSION:-1.8}
 BAZELRC=${BAZELRC:-"/dev/null"}