 fs      = require 'fs'
 request = require 'request'
 unzip   = require 'unzip'
-exec    = require('child_process').exec;
 path    = require 'path'
 loader  = require 'ewg-config'
 glob    = require 'glob'
 mkdirp  = require 'mkdirp'
 rmdir   = require 'rmdir'
 log     = require 'ewg-logging'
+spawn   = require('child_process').spawn;
+
 
 localZip = "./tmp.zip"
 


    for entry in config.template.run_after_copy
      console.log entry
      exec entry, (error, stdout, stderr) =>
        log.log error, stdout, stderr


    config = loader.loadRawYaml(wsConfig).development

    extractedThemeFolder = "#{path.dirname(wsConfig)}"

    # copy all files from unzipped folder to workspace
    m.moveFilesToParentDirectory extractedThemeFolder
