s4:dynconfig: fix the autoconf build and pass -DPYTHONDIR=\"$(pythondir)\"