Fix bad test script generation

``make check`` now works for both in source and out of source build.
Downgrade minimal autoconf version