-misc: fix bug in new build script