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

						{
							throw new Error("Project directory or JSON file not found: " + projectPath);
						}
						if(fs.statSync(projectPath).isDirectory())
						{
							var configFilePath:String = path.resolve(projectPath, ASCONFIG_JSON);
							if(!fs.existsSync(configFilePath))


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