fix configure with top level as a module