autotools: really fix the make check logic to error properly