 				{
 					srcFilePath = path.resolve(process.cwd(), srcFilePath);
 				}
-				var srcIsDir:Boolean = fs.statSync(srcFilePath).isDirectory();
+				var srcIsDir:Boolean = fs.existsSync(srcFilePath) && fs.statSync(srcFilePath).isDirectory();
 				//ensures that path formatting is consistent
 				destFilePath = path.relative(outputDir, path.resolve(outputDir, destFilePath));
 				if(destFilePath.length === 0)

				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;


		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
