generate_bom: Rework and fixes
Rework the code to make it more readable, basically creating a class to hold the information instead of ugly global variables.
Also include minor fixes:
- Fix path calculation
- Fix package name extraction
- Fix wrong default
Signed-off-by: Walter Lozano walter.lozano@collabora.com
Edited by Walter Lozano