Fix autogen.sh to be invoked from any directory