Updated core; used it to simplify and fix a bug in swaddle_build_packagesByArchitecture