Fix regex for META6.json check, also strip unneeded variable