Fixed extension package creation

It was all kinds of broken
Fixed extension package creation

It was all kinds of broken
fixed my conflicts
Merge branch 'fix_ext_build' into module_to_extension