optimize scirpt of vcbuild