       callback: (options) ->
         brunch.new options.rootPath, ->
           configPath = path.join options.rootPath, 'config.coffee'
-          config = loadConfig configPath
-          config.buildPath = options.buildPath
+          config = loadConfig configPath, options.buildPath
           brunch.build config
 
     build:

          metavar: 'DIRECTORY'
          full: 'output'
      callback: (options) ->
        config = loadConfig 'config.coffee'
        config.buildPath = options.buildPath
        brunch.build config

    watch:

          metavar: 'DIRECTORY'
          full: 'output'
      callback: (options) ->
        config = loadConfig 'config.coffee', options.buildPath
        brunch.watch config

    generate:
