diff --git a/dub.json b/dub.json
index 5b1840d..b7d79dd 100644
--- a/dub.json
+++ b/dub.json
@@ -24,6 +24,6 @@
     "bin"
   ],
   "preGenerateCommands" : [
-    "rdmd $PACKAGE_DIR/dubhash.d"
+    "rdmd \"$PACKAGE_DIR/dubhash.d\""
   ]
 }