refactor building steps: remove unused pre_package, isolate copy of code for configuration package
fix static file packaging by being recursive