diff --git a/matplotlib.cabal b/matplotlib.cabal
--- a/matplotlib.cabal
+++ b/matplotlib.cabal
@@ -1,5 +1,5 @@
 name:                matplotlib
-version:             0.7.2
+version:             0.7.3
 synopsis:            Bindings to Matplotlib; a Python plotting library
 description:
     Matplotlib is probably the most full featured plotting library out there.
@@ -45,6 +45,7 @@
                      , tasty-hunit
                      , tasty-expected-failure
                      , tasty-golden
+                     , directory
                      , bytestring
                      , process
                      , temporary
diff --git a/test/Spec.hs b/test/Spec.hs
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -103,15 +103,15 @@
 -- * Tests
 
 main = do
-  createDirectoryIfMissing "/tmp/imgs/"
+  createDirectoryIfMissing False "/tmp/imgs/"
   defaultMain $ tests "All tests" testPlot
 
 main' = do
-  createDirectoryIfMissing "/tmp/imgs/"
+  createDirectoryIfMissing False "/tmp/imgs/"
   defaultMain $ tests "Golden tests" testPlotGolden
 
 main'' = do
-  createDirectoryIfMissing "/tmp/imgs/"
+  createDirectoryIfMissing False "/tmp/imgs/"
   defaultMain $ testGroup "All tests" [tests "Execution tests" testPlot
                                       , toneDownTests "Unreliable across machines" $ tests "Golden tests" testPlotGolden]
 
