Move $nfail calculation to FATE.pm