             true
 
     installModx: (installPath, callback) ->
+        fs.makeTreeSync(installPath)
         dismiss = @dismissNotification
         command = 'git'
         args = ['clone', 'http://github.com/modxcms/revolution.git', installPath]


    inProgress: ->
        @close()
        atom.notifications.add 'info', 'MODX Installation',
            detail: 'MODX Installation is now in progress.\nSuccess message will appear when it\'s done.'
            dismissable: true

    dismissNotification: (message) =>
        atom.notifications.getNotifications().forEach (notification) =>

{$, TextEditorView, View} = require 'atom-space-pen-views'
{CompositeDisposable} = require 'atom'
{BufferedProcess} = require 'atom'
_ = require 'underscore-plus'
fs = require 'fs-plus'
