build: avoid "make check" failure without .git/ directory * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when there is no .git/ directory.