test/check_checksums: fix issue with not detecting packages in CI
This resolves an issue in the gitlab CI with test/check_checksums.py --build
not properly detecting the current branch, and also adds support for running this test locally.
The commit message includes details on what changes/why.
Results of this patch with a commit to device-nokia-n900 updating the pkgrel:
Edited by Administrator