Fix making of directories