fix typo in prepare
refactor part 3: split binary package handling into build-pkg-* files