build system: Add support for distribution and *.module and *.package files
toolbox: Improve io