Fix "make distcheck" when --with-check is NOT specified.