buildsystem: Adapt more scripts to hierarchical package structure.