Fixed make check fails when automake < 1.13.