fix detection of successful builds (produced snaps == expected snaps)
fix parsing of BUILD_ON variable:
- fix erroneous quotes; the length of the array was always 1
- use global substring replacement in case there are more than two architectures
fix parsing of BUILD_ON variable: