Moved subbuild logic completly out of dynamicbuild