Fix Makefile.am for check