diff --git a/Makefile b/Makefile
index bab98bcb08999b20100293b53b6159fda70bcccf..74ccee14a17ff458f949e7bbf63c4c7a8c4ddeca 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,6 @@ JSONNET_FMT := jsonnet fmt -n 2 --max-blank-lines 2 --string-style s --comment-s
 JB_BINARY:=$(GOPATH)/bin/jb
 EMBEDMD_BINARY:=$(GOPATH)/bin/embedmd
 
-# edit 1
-
 all: generate fmt test
 
 ../../hack/jsonnet-docker-image: ../../scripts/jsonnet/Dockerfile
@@ -26,10 +24,9 @@ generate-in-docker: ../../hack/jsonnet-docker-image
 generate: manifests **.md
 
 **.md: $(EMBEDMD_BINARY) $(shell find examples) build.sh example.jsonnet
-	echo '>>> inside **.md'
 	$(EMBEDMD_BINARY) -w `find . -name "*.md" | grep -v vendor`
 
-manifests: vendor example.jsonnet
+manifests: vendor example.jsonnet build.sh
 	rm -rf manifests
 	./build.sh
 
diff --git a/README.md b/README.md
index 5b2141c892360cd0889e32e2332fc50a1b448f35..bf61d9aeb747c927f066d4f364db727d2a52ff58 100644
--- a/README.md
+++ b/README.md
@@ -112,7 +112,7 @@ rm -rf manifests
 mkdir manifests
 
                                                # optional, but we would like to generate yaml, not json
-jsonnet -J vendor -m manifests ${1-example.jsonnet} | xargs -I{} sh -c 'cat $1 | gojsontoyaml > $1.yaml; rm -f $1' -- {}
+jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
 
 ```
 
diff --git a/build.sh b/build.sh
index 6037c3db7c82bb0fee331b3c561998bf1da0da8e..4eaf5ac569b085073f5969c6683b22e84084171a 100755
--- a/build.sh
+++ b/build.sh
@@ -9,5 +9,5 @@ rm -rf manifests
 mkdir manifests
 
                                                # optional, but we would like to generate yaml, not json
-jsonnet -J vendor -m manifests ${1-example.jsonnet} | xargs -I{} sh -c 'cat $1 | gojsontoyaml > $1.yaml; rm -f $1' -- {}
+jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml; rm -f {}' -- {}
 
diff --git a/experimental/custom-metrics-api/gencerts.sh b/experimental/custom-metrics-api/gencerts.sh
index 7cd8af931b447105f2c9e7cb52f766aea0f29016..b1e16031ff40fe5b74b278fb27a95e67bc0cd307 100755
--- a/experimental/custom-metrics-api/gencerts.sh
+++ b/experimental/custom-metrics-api/gencerts.sh
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 # Detect if we are on mac or should use GNU base64 options
-case `uname` in
+case $(uname) in
         Darwin)
             b64_opts='-b=0'
             ;; 
@@ -17,7 +17,8 @@ echo '{"signing":{"default":{"expiry":"43800h","usages":["signing","key encipher
 
 export SERVICE_NAME=custom-metrics-apiserver
 export ALT_NAMES='"custom-metrics-apiserver.monitoring","custom-metrics-apiserver.monitoring.svc"'
-echo '{"CN":"'${SERVICE_NAME}'","hosts":['${ALT_NAMES}'],"key":{"algo":"rsa","size":2048}}' | cfssl gencert -ca=metrics-ca.crt -ca-key=metrics-ca.key -config=metrics-ca-config.json - | cfssljson -bare apiserver
+echo "{\"CN\":\"${SERVICE_NAME}\", \"hosts\": [${ALT_NAMES}], \"key\": {\"algo\": \"rsa\",\"size\": 2048}}" | \
+       	cfssl gencert -ca=metrics-ca.crt -ca-key=metrics-ca.key -config=metrics-ca-config.json - | cfssljson -bare apiserver
 
 cat <<-EOF > cm-adapter-serving-certs.yaml
 apiVersion: v1
@@ -25,6 +26,6 @@ kind: Secret
 metadata:
   name: cm-adapter-serving-certs
 data:
-  serving.crt: $(cat apiserver.pem | base64 ${b64_opts})
-  serving.key: $(cat apiserver-key.pem | base64 ${b64_opts})
+  serving.crt: $(base64 ${b64_opts} < apiserver.pem)
+  serving.key: $(base64 ${b64_opts} < apiserver-key.pem)
 EOF
diff --git a/test.sh b/test.sh
index dad4e75fa8994fe83586824454b1af7a6d73344e..cfdf584c5439758ff91437d314ce7db631dc132c 100755
--- a/test.sh
+++ b/test.sh
@@ -8,7 +8,8 @@ for i in examples/jsonnet-snippets/*.jsonnet; do
     [ -f "$i" ] || break
     echo "Testing: ${i}"
     echo ""
-    snippet="local kp = $(<${i});
+    fileContent=$(<"$i")
+    snippet="local kp = $fileContent;
 
 $(<examples/jsonnet-build-snippet/build-snippet.jsonnet)"
     echo "${snippet}" > "test.jsonnet"
@@ -25,8 +26,8 @@ for i in examples/*.jsonnet; do
     echo "Testing: ${i}"
     echo ""
     echo "\`\`\`"
-    echo "$(<${i})"
+    cat "${i}"
     echo "\`\`\`"
     echo ""
-    jsonnet -J vendor ${i} > /dev/null
+    jsonnet -J vendor "${i}" > /dev/null
 done