find possible target architectures from package.yml
Fix unit tests for target detection
Code cleanup