core: fix bad output of mk_pretty_target
chain-generic: fix cosmetic error when staging files outside the stage area