improve directory & file deletion & creation on bundle script