build: fix and update output script print