Base: Fix grunt checking for invalid files