Updating autogen.sh to work with parent projects in submodules.