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 before deleting it? Maybe rimraf is better to perform unchecked deletion.