 
 		private function unpackANE(aneFilePath:String):void
 		{
-			if(fs.statSync(aneFilePath).isDirectory())
+			if(fs.existsSync(aneFilePath) && fs.statSync(aneFilePath).isDirectory())
 			{
 				//this is either an ANE that's already unpacked
 				//...or something else entirely

				var fileName:String = files[i];
				var inputFilePath:String = path.resolve(inputDir, fileName);
				var outputFilePath:String = path.resolve(outputDir, fileName);
				if(fs.statSync(inputFilePath).isDirectory())
				{
					copyHTMLTemplateDirectory(inputFilePath, outputFilePath);
					continue;

				{
					result.push(libraryPath);
				}
				else if(fs.existsSync(libraryPath) && fs.statSync(libraryPath).isDirectory())
				{
					var files:Array = fs.readdirSync(libraryPath);
					var fileCount:int = files.length;
