Some fixes

   * Improve npm error catching (issue #24)
   * Manage patch with empty folder (issue #25)
   * Write readable json file (config and stack) 
   * Debug update-stack function (pb reported in irc)
Shouldn't you check the existence of path.join(pathRoot, name) before deleting it?