         stdout = (output) -> atom.notifications.add 'warning', output
         exit = (code) -> callback()
         process = new BufferedProcess({command, args, stdout, exit})
-        process.onWillThrowError((error) -> dismiss())
+        process.onWillThrowError((error) -> dismiss("MODX Installation"))
+
+    checkBuild: (buildPath) ->
+        fs.existsSync(buildPath)
 
     config: ->
         buildPath = path.join(@getInstallPath(), '_build/')


    runBuild: (installPath) ->
        dismiss = @dismissNotification
        command = 'php'
        args = [path.join(installPath, '_build/transport.core.php')]
        stdout = (output) -> console.log output
        exit = (code) -> atom.notifications.add 'success', 'Build done.'
        process = new BufferedProcess({command, args, stdout, exit})
        process.onWillThrowError((error) -> dismiss())

    callForGit: (callback) ->
        installPath = @getInstallPath()

        else if process.platform is 'darwin'
            path.join(fs.getHomeDirectory(), 'sites')
        else if process.platform is 'win32'
            path.join(fs.getHomeDirectory(), 'wamp')

    validInstallPath: ->
        if fs.existsSync(@getInstallPath())
