[scripting] fixed rebuild script;