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

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


		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
