the directory will be removed if someone put a wrong app directory here, it's a little annoying if I just forget to add manifest.webapp/update.webapp then I lose all my stuffs. it would be better if only raise an exception and exit this script.