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

        args = [path.join(installPath, 'setup/index.php'), '--installmode=new']
        stdout = (output) -> atom.notifications.add 'warning', output
        exit = (code) ->
            dismiss("MODX Installation"))
            atom.notifications.add 'success', 'Install finished.'
        process = new BufferedProcess({command, args, stdout, exit})
        process.onWillThrowError((error) ->


    inProgress: ->
        @close()
        if fs.makeTreeSync(@getInstallPath())
            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) =>
