diff --git a/adblock2privoxy.cabal b/adblock2privoxy.cabal
--- a/adblock2privoxy.cabal
+++ b/adblock2privoxy.cabal
@@ -1,5 +1,5 @@
 name:                adblock2privoxy
-version:             1.3.2
+version:             1.3.3
 cabal-version:       >= 1.10
 build-type:          Simple
 tested-with:         
@@ -98,4 +98,4 @@
   type:      git
   location:  ​http://projects.zubr.me/adblock2privoxy.git
   subdir:    adblock2privoxy
-  tag:       1.3.2
+  tag:       1.3.3
diff --git a/distribution/rpmbuild/SPECS/adblock2privoxy.spec b/distribution/rpmbuild/SPECS/adblock2privoxy.spec
--- a/distribution/rpmbuild/SPECS/adblock2privoxy.spec
+++ b/distribution/rpmbuild/SPECS/adblock2privoxy.spec
@@ -1,11 +1,11 @@
 Name:    adblock2privoxy
-Version: 1.3.2
+Version: 1.3.3
 Release: 1%{?dist}
 Summary: Convert adblock config files to privoxy format
 
 License: GPL-3
 URL:     https://projects.zubr.me/wiki/adblock2privoxy
-Source0: http://hackage.haskell.org/package/adblock2privoxy-1.3.2/adblock2privoxy-1.3.2.tar.gz
+Source0: http://hackage.haskell.org/package/adblock2privoxy-1.3.3/adblock2privoxy-1.3.3.tar.gz
 Vendor:  Alexey Zubritskiy <adblock2privoxy@zubr.me>
 Group:   Web
 
@@ -67,5 +67,5 @@
 
 
 %changelog
-* Sat Feb 07 2015 Alexey Zubritskiy <adblock2privoxy@zubr.me> - 1.3.2
+* Sat Feb 07 2015 Alexey Zubritskiy <adblock2privoxy@zubr.me> - 1.3.3
 - Rpm release for new version (generated from cabal file)
diff --git a/man/man1/adblock2privoxy.1 b/man/man1/adblock2privoxy.1
--- a/man/man1/adblock2privoxy.1
+++ b/man/man1/adblock2privoxy.1
@@ -1,4 +1,4 @@
-.TH "ADBLOCK2PRIVOXY" "1" "2015\-02\-07" "adblock2privoxy 1.3.2" "General Commands Manual"
+.TH "ADBLOCK2PRIVOXY" "1" "2015\-02\-07" "adblock2privoxy 1.3.3" "General Commands Manual"
 .SH ADBLOCK2PRIVOXY
 .PP
 \f[B]Convert adblock config files to privoxy format\f[]
diff --git a/src/Main.hs b/src/Main.hs
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -17,6 +17,7 @@
 import Network.Socket
 import System.Directory
 import System.IO
+import Control.Monad 
 
 
   
@@ -36,7 +37,8 @@
         (parsed, sourceInfo) <- unzip <$> mapM parseSource sources   
         let parsed' = concat parsed 
             sourceInfoText = showInfo sourceInfo
-            optionsText = logOptions options               
+            optionsText = logOptions options
+        createDirectoryIfMissing True $ _privoxyDir options               
         writeTask taskFile (sourceInfoText ++ optionsText) parsed'
         if null._cssDomain $ options
                 then putStrLn "WARNING: CSS generation is not run because webserver domain is not specified"
@@ -60,7 +62,7 @@
                            then return (parsed, sourceInfo')
                            else parseSource sourceInfo'
                 Left msg -> return ([], sourceInfo) <$ putStrLn $ show msg
-        
+
 main::IO()
 main =  do 
         now <- getCurrentTime
