Adds support for target architectures to build command
Adds check for xap created during build