diff --git a/build_deps.sh b/build_deps.sh
index a28597c55cdeb4e8b31fd4a439fc97522be43d8f..2ece1b486e3c78d317af36342899509aaa35aa30 100644
--- a/build_deps.sh
+++ b/build_deps.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
 cd mirador-video-annotation
-docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build:es"
+docker run --rm -v "$(pwd):/opt" -it node:12 /bin/sh -c "cd /opt && npm install && npm run build:es"
 cd ../annotations-plugin
-docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build"
+docker run --rm -v "$(pwd):/opt" -it node:12 /bin/sh -c "cd /opt && npm install && npm run build"